<style>    
    #testFileInput2{
        height: 30px; width: 102px; margin-left: 128px;
    }
    #preview1, #topPhpto
        {  
            width:150px;  
            padding-left: 65px;padding-top: 15px; border-top-width: 5px;
            //height:150px;  
        }
</style>
<div class="pageContent">	
    <form method="post" action="__CONTROLLER__/edit?callbackType=closeCurrent" class="pageForm required-validate" onsubmit="return validateCallback(this, dialogAjaxDone)">
        <input type="hidden"  id='hidden'  name='id' value="<{$wikiInfo.id}>"/>
        <input type="hidden" id="img1" name="icon" value="<{$wikiInfo.icon}>">
        <div class="pageFormContent" layoutH="58">
            <div class="unit">
                <label>名称：</label>
                <input type="text" name="name" size="20"  value="<{$wikiInfo.name}>" class='required' />
            </div>
            <div class="unit">
                <label>品牌：</label>
                <input type="text" name="brand" size="20"  value="<{$wikiInfo.brand}>" class='' />
            </div>
            <div id="preview1" href=""><img src="<{$Think.const.PUBLIC_URL}>upload/<{$wikiInfo.icon}>" id='topPhpto'/></div>
            <div class="unit">
                <label>上传图片：</label>  
                <input id="testFileInput2" type="file" name="images"                                        
                    uploaderOption="{
			swf:'<{$Think.const.DWZ_URL}>uploadify/scripts/uploadify.swf',
			uploader:'__CONTROLLER__/wikiphoto&wid=<?php echo $_SESSION['wiki_image'];?>',
                        formData:{authId:<?php echo $_SESSION['authId'];?>, ajax:1},
			buttonText:'请选择文件',
			fileSizeLimit:'20000KB',
			fileTypeDesc:'*.jpg;*.jpeg;*.gif;*.png;',
			fileTypeExts:'*.jpg;*.jpeg;*.gif;*.png;',
			auto:true,
                        onUploadSuccess:function(file,data,respore){
                            $('#topPhpto').attr('src','<{$Think.const.PUBLIC_URL}>'+'upload/'+data);
                            $('#img1').val(data);
                        }
                    }"
                />
            </div>
            <div class="unit" id='control'>
                <label>产品类型：</label>
                <input type="text"  name="type" size="20" value="<{$wikiInfo.type}>" class='required'/>
            </div>          
            <div class="unit" id='control'>
                <label>产品型号：</label>
                <input type="text"  name="typeNo" size="20" value="<{$wikiInfo.typeno}>" class='required'/>
            </div> 
            <div class="unit" id='control'>
                <label>公司：</label>
                <input type="text"  name="company" size="20" value="<{$wikiInfo.company}>" class='required'/>
            </div> 
            <div class="unit" id='control'>
                <label>网址：</label>
                <input type="text"  name="website" size="20" value="<{$wikiInfo.website}>" class=''/>
            </div>
            <div class="unit" id='control'>
                <label>参考价钱：</label>
                <input type="text"  name="price" size="20" value="<{$wikiInfo.price}>" class=''/>
            </div>
            <div class="unit" id='control'>
                <label>描述：</label>
                <textarea name="description" cols="20" rows="6" class='required'><{$wikiInfo.description}></textarea>
            </div> 
            <!--
            <gt name="Think.session.type" value="1">
                <neq name="buyInfo['id']" value=''>
                    <div class="unit">
                        <label style="width: 108px;">是否置顶：</label>
                        <label style="width: 38px;"><input type="radio" name="top" value="1" />是</label>
                        <label><input type="radio" name="top" value='0' checked/>否</label> 
                    </div>
                </neq>
            </gt>
            -->
        </div>
        <div class="formBar">
            <ul>
                <li><div class="buttonActive"><div class="buttonContent"><button type="submit">提交</button></div></div></li>
                <li><div class="button"><div class="buttonContent"><button type="button" class="close">取消</button></div></div></li>
            </ul>
        </div>
    </form>	
</div>
